package com.swak.corpwx.kf;

import java.io.Serializable;
import java.util.List;

import com.swak.corpwx.CpBaseResp;
import com.swak.corpwx.kf.msg.CpKfBusinessCardMsg;
import com.swak.corpwx.kf.msg.CpKfChannelsShopOrderMsg;
import com.swak.corpwx.kf.msg.CpKfChannelsShopProductMsg;
import com.swak.corpwx.kf.msg.CpKfEventMsg;
import com.swak.corpwx.kf.msg.CpKfLinkMsg;
import com.swak.corpwx.kf.msg.CpKfLocationMsg;
import com.swak.corpwx.kf.msg.CpKfMenuMsg;
import com.swak.corpwx.kf.msg.CpKfMiniProgramMsg;
import com.swak.corpwx.kf.msg.CpKfResourceMsg;
import com.swak.corpwx.kf.msg.CpKfTextMsg;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 同步消息
 * 
 * @author 618lf
 */
@Getter
@Setter
@Accessors(chain = true)
public class CpKfMsgListResp extends CpBaseResp<CpKfMsgListResp> {

	private static final long serialVersionUID = 1L;

	private String next_cursor;
	private Integer has_more;
	private List<CpKfMsgListItemResp> msg_list;

	@Getter
	@Setter
	@Accessors(chain = true)
	public static class CpKfMsgListItemResp implements Serializable {
		private static final long serialVersionUID = 1L;
		private String msgid;
		private String open_kfid;
		private String external_userid;
		private String send_time;
		private String origin;
		private String servicer_userid;
		private String msgtype;

		private CpKfTextMsg text;
		private CpKfResourceMsg image;
		private CpKfResourceMsg voice;
		private CpKfResourceMsg video;
		private CpKfResourceMsg file;
		private CpKfLocationMsg location;
		private CpKfLinkMsg link;
		private CpKfBusinessCardMsg business_card;
		private CpKfMiniProgramMsg miniprogram;
		private CpKfMenuMsg msgmenu;
		private CpKfEventMsg event;
		private CpKfChannelsShopProductMsg channels_shop_product;
		private CpKfChannelsShopOrderMsg channels_shop_order;
	}
}
